/**
 * 连接socket server
 */
import bus from "../bus"
// @ts-ignore
import client from "./client"

client.open()

export default client

if (process.env.NODE_ENV == 'development') {
    setInterval(() => {
        if (client.isConnected) return
        client.open()
    }, 1000);
}
